package com.hdax.dm.utils;

import java.util.Random;

public class MokeImage {

    /**
     * typeId   1.海报图   2.轮播图  3矩形图  其他：方形图
     * String   返回图片路径
     */
    public static String getImage(int typeId){
        Random random = new Random();
        switch (typeId){
            case 1:
                if (random.nextInt(1)==1){
                    return "/static/img/big"+(random.nextInt(5)+1)+".jpg";
                }else {
                    return "/static/img/cardimg"+(random.nextInt(6)+1)+".jpg";
                }
            case 2:
                return "/static/img/pic"+(random.nextInt(3)+1)+".jpg";
            case 3:
                return "/static/img/child"+(random.nextInt(6)+1)+".png";
            default:
                return "/static/img/calendar0"+(random.nextInt(9)+1)+".jpg";
        }
    }
}
